import request from '@/utils/request'
// import qs from 'qs'

export function getListPage(params) {
  return request({
    url: '/operate/confIcon/listPage',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
      'pageNum': params.pageNum,
      'pageSize': params.pageSize
    },
    method: 'get',
    params: params
  })
}

// 易就业公司列表
export function getEnterprise() {
  return request({
    url: '/ejob/jobCompany/list',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    method: 'get',
  })
}

// 易就业获取分类
export function getProfession() {
  return request({
    url: '/ejob/jobCategory/list',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    method: 'get',
  })
}

// 易教育培训公司列表
export function getEduCompanyList() {
  return request({
    url: '/edu/eduCompany/list',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    method: 'get',
  })
}

// 易教育获取分类列表
export function getEduCategoryList() {
  return request({
    url: '/edu/eduCategory/list',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    method: 'get',
  })
}



export function updateIcon(data) {
  return request({
    url: '/operate/confIcon',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    method: 'put',
    data
  })
}
export function addIcon(data) {
  return request({
    url: '/operate/confIcon',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    method: 'post',
    data
  })
}
